package com.ruoyi.basic.domain;

import com.baomidou.mybatisplus.annotation.*;

import javax.validation.constraints.NotBlank;

import com.ruoyi.common.annotation.Excels;
import com.ruoyi.common.mybatisplus.core.BaseEntity;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import com.ruoyi.common.annotation.Excel;

/**
 * 家庭成员对象 basic_family
 * 
 * @author ruoyi
 * @date 2021-08-20
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("basic_family")
public class BasicFamily extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 家庭id */
    @TableId(type = IdType.AUTO)
    private Long familyId;

    private Long userId;

    @TableField(exist = false)
    private String userNo;

    @TableField(exist = false)
    @Excel(name = "员工姓名")
    private String userName;

    @TableField(exist = false)
    @Excel(name = "身份证号")
    private String idCard;

    @TableField(exist = false)
    private Long deptId;

    /** 姓名 */
    @NotBlank(message = "姓名不能为空")
    @Excel(name = "姓名")
    private String familyName;

    /** 称谓 */
    @NotBlank(message = "称谓不能为空")
    @Excel(name = "称谓", dictType = "basic_user_family", comboDict = "basic_user_family")
    private String familyTitle;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String familyMobile;

    /** 工作单位 */
    @Excel(name = "工作单位")
    private String familyAddress;

    /** 职务 */
    @Excel(name = "职务")
    private String familyDuty;

    /** 删除标志 */
    @TableLogic
    private String delFlag;
}
